<template>
	<div class="about">
		<!-- 这里的id对应需要打印的区域 打印配置需要陪住此id -->
		<div id="formId" style="width: 200px;">
			<h2>打印标题</h2>
			<div>
				<li v-for="i in 10">{{ i }}</li>
			</div>
		</div>
		<button v-print="printObj">打印</button>
	</div>
</template>
<script>
import Print from 'vue-print-nb';
import Vue from 'vue'
Vue.use(Print);
export default {
	data() {
		return {
			printObj: {
				//打印配置
				id: 'formId', //需要打印的dom id
				popTitle: '拣货单' //标题
			}
		};
	}
};
</script>
